package com.mongo.aggregation.model.enums;

/**
 * @author: qilongxin
 * @date: 2021/11/11 11:05
 */
public enum ResponseCode {

    /**
     * 服务器响应码枚举
     */
    SUCCESS(200, "成功"),
    FAIL(-1, "失败");

    private final int code;
    private final String decs;

    ResponseCode(int code, String decs) {
        this.code = code;
        this.decs = decs;
    }

    public int getCode() {
        return this.code;
    }

    public String getDecs() {
        return this.decs;
    }

}
